<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
$this->load->view('header');
?>
<section class="container_12 clearfix" id="main">
    <section class="grid_9" id="container">
        <ol class="album_list">
            <?php if ($images) : ?>
                <?php foreach ($images as $v): ?>
                    <li>
                        <a href="/albums/image/<?php echo $v->ID; ?>">
                            <img src="/upload/<?php echo $v->image_name . '_thumb' . $v->file_ext; ?>" alt="<?php echo $v->image_description; ?>" />
                        </a>
                    </li>
                <?php endforeach; ?>
            <?php else: ?>
                <li>暂无内容</li>
            <?php endif; ?>
        </ol>
        <?php echo $this->pagination->create_links(); ?>
    </section>
    <?php $this->load->view('sidebar'); ?>
</section>
<?php
$this->load->view('footer');
